package com.ibiaoke.common.configs;

import org.apache.log4j.Logger;

public class AliPayConfigs {
    private static Logger logger = Logger.getLogger(AliPayConfigs.class);

    public static String HTTP_METHOD = "GET";
    /**
     * 日志记录目录
     */
    public static String log_path = "/log";
    // RSA2
    public static String SIGNTYPE = "RSA2";
    /**
     * 编码
     */
    public static String CHARSET = "UTF-8";
    /**
     * 返回格式
     */
    public static String FORMAT = "json";

    public static String getAppID() {
        return GlobalConfigs.getConfigure(GlobalConfigsKey.AliPay.APP_ID);
    }

    public static String getGateWay() {
        return GlobalConfigs.getConfigure(GlobalConfigsKey.AliPay.URL);
    }

    public static String getReturnURL() {
        return GlobalConfigs.getConfigure(GlobalConfigsKey.AliPay.RETURN_URL);
    }

    public static String getNotifyURL() {
        return GlobalConfigs.getConfigure(GlobalConfigsKey.AliPay.NOTIFY_URL);
    }

    public static String getAliPublicKey() {
        return GlobalConfigs.getConfigure(GlobalConfigsKey.AliPay.ALI_PUBLIC_KEY);
    }

    public static String getPrivateKey() {
        return GlobalConfigs.getConfigure(GlobalConfigsKey.AliPay.PRIVATE_KEY);
    }

    public static String getPtNotifyURL() {
        return GlobalConfigs.getConfigure(GlobalConfigsKey.AliPay.Pt_NOTIFY_URL);
    }

}
